<?php

namespace app\validate\api\recruit;

use think\Validate;

class createValidate extends Validate
{

    protected $rule = [
        'user_name' => 'require',
        'user_age' => 'require|number|gt:17',
     //   'user_avatar' => 'require',
        'industry_id' => 'require|number',
        'job_type' => 'require',
        'salary_min' => 'require|number',
        'salary_max' => 'require|number',
      //  'education_level' => 'max:100',
     //   'work_experience' => 'max:300',
        'province_id' => 'require|number',
        'province_name' => 'require',
        'city_id' => 'require|number',
        'city_name' => 'require',
        'district_id' => 'require|number',
        'district_name' => 'require',
        'user_job_status' => 'require',
        'advantage' => 'require',
        'working_years' => 'require',

    ];

    protected $message = [
        'user_name.require' => '姓名必须填写',
        'user_age.require' => '年龄必须填写',
        'user_age.gt' => '年龄不能小于18岁',
      //  'user_avatar.require' => '头像必须填写',
        'job_type.require' => '求职类型必须提供',
        'industry_id.require' => '行业ID必须提供',
        'salary_min.require' => '期望薪资下限必须提供',
        'salary_max.require' => '期望薪资上限必须提供',
      //  'education_level.max' => '教育程度不能超过100个字符',
       // 'work_experience.max' => '工作经历不能超过300个字符',
        'province_id' => '省id不能为空',
        'city_id' => '市id不能为空',
        'district_id' => '区id不能为空',
        'province_name' => '省名字不能为空',
        'city_name' => '市名字不能为空',
        'district_name' => '区名字不能为空',
        'user_job_status' => '求职状态不能为空',
        'advantage' => '个人优势不能为空',
        'working_years' => '工作年限不能为空',
    ];

}